package priv.yiyuan.example.design;

/**
 * 圆形
 * <p>
 * 桥接模式(扩展抽象部分)/组合模式(叶子)
 */
public class Circle extends Shape {

    private double radius;

    public Circle(Renderer renderer, double radius) {
        super(renderer);
        this.radius = radius;
    }

    @Override
    public void draw() {
        renderer.renderCircle(radius);
    }
}
